package model

type BlogSettings struct {
	ID                     uint64  `gorm:"primaryKey;autoIncrement;comment:'id'" json:"id"`
	Logo                   string  `gorm:"type:varchar(120);not null;default:'';comment:'博客Logo'" json:"logo"`
	Name                   string  `gorm:"type:varchar(60);not null;default:'';comment:'博客名称'" json:"name"`
	Author                 string  `gorm:"type:varchar(20);not null;default:'';comment:'作者名'" json:"author"`
	Introduction           string  `gorm:"type:varchar(120);not null;default:'';comment:'介绍语'" json:"introduction"`
	Avatar                 string  `gorm:"type:varchar(120);not null;default:'';comment:'作者头像'" json:"avatar"`
	GitHubHomepage         string  `gorm:"type:varchar(60);not null;default:'';comment:'GitHub 主页访问地址'" json:"github_homepage"`
	CSDNHomepage           string  `gorm:"type:varchar(60);not null;default:'';comment:'CSDN 主页访问地址'" json:"csdn_homepage"`
	GiteeHomepage          string  `gorm:"type:varchar(60);not null;default:'';comment:'Gitee 主页访问地址'" json:"gitee_homepage"`
	ZhihuHomepage          string  `gorm:"type:varchar(60);not null;default:'';comment:'知乎主页访问地址'" json:"zhihu_homepage"`
	Mail                   *string `gorm:"type:varchar(60);comment:'博主邮箱地址'" json:"mail"`
	IsCommentSensiWordOpen int8    `gorm:"type:tinyint(2);not null;default:1;comment:'是否开启评论敏感词过滤, 0:不开启；1：开启'" json:"is_comment_sensi_word_open"`
	IsCommentExamineOpen   int8    `gorm:"type:tinyint(2);not null;default:0;comment:'是否开启评论审核, 0: 未开启；1：开启'" json:"is_comment_examine_open"`
}

func (BlogSettings) TableName() string {
	return "t_blog_settings"
}
